package com.tuanzhang.example.provider.impl;

import com.tuanzhang.example.api.dto.UserDTO;
import com.tuanzhang.example.api.service.UserService;
import com.tuanzhang.zhw.rpc.spring.annotaion.RpcService;
import lombok.extern.slf4j.Slf4j;

@Slf4j
@RpcService(version = "v1.0")
public class UserServiceImpl implements UserService {

    public UserDTO queryByUserId(Integer integer) {
        UserDTO userDTO = new UserDTO();
        userDTO.setId(integer);
        userDTO.setUserName(integer + "名称");
        log.info("queryByUserId" + integer);
        return userDTO;
    }

    public boolean saveUser(UserDTO userDTO) {
        log.info("saveUser" + userDTO.getUserName());
        return true;
    }
}
